package com.zhonghui.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 制造执行MES—质量管理—质量追溯对象 mes_zhiliang_zuisu
 * 
 * @author qiezi
 * @date 2023-12-15
 */
public class MesZhiliangZuisu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    private Long id;

    /** 流水号 */
    @Excel(name = "流水号")
    private String serialNo;

    /** 计划编号 */
    @Excel(name = "计划编号")
    private String planId;

    /** 完工单号 */
    @Excel(name = "完工单号")
    private String wanNumber;

    /** 作业名称 */
    @Excel(name = "作业名称")
    private String assemblyName;

    /** 产线名称 */
    @Excel(name = "产线名称")
    private String chanxianName;

    /** 检验批次 */
    @Excel(name = "检验批次")
    private String inspectorNamber;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String materialName;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date manufactureDate;

    /** 检验项 */
    @Excel(name = "检验项")
    private String jinayan;

    /** 生产数量 */
    @Excel(name = "生产数量")
    private Long quantityProduced;

    /** 抽检数量 */
    @Excel(name = "抽检数量")
    private Long cjProduced;

    /** 检验结果 */
    @Excel(name = "检验结果")
    private Long jianyanJg;

    /** 检验人 */
    @Excel(name = "检验人")
    private Long jianyanRen;

    /** 检验时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检验时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date jianyanDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSerialNo(String serialNo) 
    {
        this.serialNo = serialNo;
    }

    public String getSerialNo() 
    {
        return serialNo;
    }
    public void setPlanId(String planId) 
    {
        this.planId = planId;
    }

    public String getPlanId() 
    {
        return planId;
    }
    public void setWanNumber(String wanNumber) 
    {
        this.wanNumber = wanNumber;
    }

    public String getWanNumber() 
    {
        return wanNumber;
    }
    public void setAssemblyName(String assemblyName) 
    {
        this.assemblyName = assemblyName;
    }

    public String getAssemblyName() 
    {
        return assemblyName;
    }
    public void setChanxianName(String chanxianName) 
    {
        this.chanxianName = chanxianName;
    }

    public String getChanxianName() 
    {
        return chanxianName;
    }
    public void setInspectorNamber(String inspectorNamber) 
    {
        this.inspectorNamber = inspectorNamber;
    }

    public String getInspectorNamber() 
    {
        return inspectorNamber;
    }
    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }
    public void setManufactureDate(Date manufactureDate) 
    {
        this.manufactureDate = manufactureDate;
    }

    public Date getManufactureDate() 
    {
        return manufactureDate;
    }
    public void setJinayan(String jinayan) 
    {
        this.jinayan = jinayan;
    }

    public String getJinayan() 
    {
        return jinayan;
    }
    public void setQuantityProduced(Long quantityProduced) 
    {
        this.quantityProduced = quantityProduced;
    }

    public Long getQuantityProduced() 
    {
        return quantityProduced;
    }
    public void setCjProduced(Long cjProduced) 
    {
        this.cjProduced = cjProduced;
    }

    public Long getCjProduced() 
    {
        return cjProduced;
    }
    public void setJianyanJg(Long jianyanJg) 
    {
        this.jianyanJg = jianyanJg;
    }

    public Long getJianyanJg() 
    {
        return jianyanJg;
    }
    public void setJianyanRen(Long jianyanRen) 
    {
        this.jianyanRen = jianyanRen;
    }

    public Long getJianyanRen() 
    {
        return jianyanRen;
    }
    public void setJianyanDate(Date jianyanDate) 
    {
        this.jianyanDate = jianyanDate;
    }

    public Date getJianyanDate() 
    {
        return jianyanDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("serialNo", getSerialNo())
            .append("planId", getPlanId())
            .append("wanNumber", getWanNumber())
            .append("assemblyName", getAssemblyName())
            .append("chanxianName", getChanxianName())
            .append("inspectorNamber", getInspectorNamber())
            .append("materialName", getMaterialName())
            .append("manufactureDate", getManufactureDate())
            .append("jinayan", getJinayan())
            .append("quantityProduced", getQuantityProduced())
            .append("cjProduced", getCjProduced())
            .append("jianyanJg", getJianyanJg())
            .append("jianyanRen", getJianyanRen())
            .append("jianyanDate", getJianyanDate())
            .append("remark", getRemark())
            .toString();
    }
}
